<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/5/17
  Time: 14:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager" %>
<html>
<head>
    <title></title>
</head>
<body>
<pg:pager maxPageItems="20" items="1000" maxIndexPages="10" export="curPage=pageNumber">
  <pg:first><a href="${pageUrl}">首页</a></pg:first>
  <pg:prev><a href="${pageUrl}">上一页</pg:prev>
  <pg:pages>
      <c:if test="${curPage eq pageNumber}">
      [<%=pageNumber%>]
      </c:if>

      <c:if test="${curPage ne pageNumber}">
      <a href="${pageUrl}">${pageNumber}</a>
      </c:if></pg:pages>
    <pg:next><a href="${pageUrl}">下一页<a/></pg:next>
    <pg:last><a href="${pageUrl}">尾页</a></pg:last>
  </pg:pager>


</body>
</html>
